//
//  GroupFileCell.h
//  wanzhaoIM
//
//  Created by liuyuantao on 15/6/1.
//  Copyright (c) 2015年 liuyuantao. All rights reserved.
//

#import <UIKit/UIKit.h>
@class CFileModel;

typedef enum
{
    FILEDOWNSTATUS_DOWN = 0,//下载状态
    FILEDOWNSTATUS_PAUSE,//暂停状态
    FILEDOWNSTATUS_CONTINUE,//继续状态 （可以下载）
    FILEDOWNSTATUS_SHOW,//查看状态
    FILEDOWNSTATUS_ERRORCONTINUE//继续（出错状态 不能下载）
}FILEDOWNSTATUS;

@protocol GroupFileCellDelegate <NSObject>
@optional
- (void)GroupFileCellDidOpenFileWithIndexPath:(NSIndexPath *)indexPath;

@end

@interface GroupFileCell : UITableViewCell
@property(nonatomic, weak)IBOutlet UIView *seperatorLine;
@property(nonatomic, weak)IBOutlet UIImageView *fileIcon;
@property(nonatomic, weak)IBOutlet UIProgressView *progress;
@property(nonatomic, weak)IBOutlet UILabel *fileName;
@property(nonatomic, weak)IBOutlet UILabel *fileSizenAndFrom;
@property(nonatomic, weak)IBOutlet UILabel *fileTime;
@property(nonatomic, weak)IBOutlet UIImageView *fileDownErr;
@property(nonatomic, weak)IBOutlet UIButton *downButton;
@property (nonatomic, weak) IBOutlet UIButton *previewButton;
@property (nonatomic, weak) IBOutlet UIButton *fileDownOrPauseButton;
@property (nonatomic, strong) NSIndexPath *indexPath;
@property (nonatomic, strong) CFileModel *fileModel;

@property (nonatomic, weak) id<GroupFileCellDelegate> groupFileCellDelegate;
@property (nonatomic, assign) CGFloat progressValue;
//设置进度信息

//设置按钮状态
@end
